package com.allwees.bs.c.module.sys.repository;

import com.allwees.bs.c.module.base.repository.BaseRepository;
import com.allwees.bs.c.module.sys.entity.SysParamEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface SysParamRepository extends BaseRepository<SysParamEntity, Integer> {

    @Query("FROM SysParamEntity WHERE name = :name and isDeleted = 0")
    SysParamEntity findByName(@Param("name") String name);
}
